package com.example.api.model;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.omg.CORBA.PUBLIC_MEMBER;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * @program: api_limit
 * @description:
 * @author: Mr.chen
 * @create: 2020-02-18 19:27
 **/
@Getter
@Setter
@ToString
@NoArgsConstructor
public class TbConfig {
    private Long id;
    private String componentName ;
    private String modelCode ;
    private String configName ;
    private String configValue ;
    private String description ;

    public static List<TbConfig> CONFIG_LIST =new ArrayList<>();
    public static final String CONFIG_TIME = "config_time";
    public static final String CONFIG_TIMES = "config_times";
    static {
        CONFIG_LIST.add(new TbConfig("config_time","60000"));
        CONFIG_LIST.add(new TbConfig("config_times","5"));
    }

    public TbConfig(String configName,String configValue) {
        this.componentName = "componentName";
        this.modelCode = "modelCode";
        this.configName = configName;
        this.configValue = configValue;
        this.description = "description";
    }
}
